package com.health.db.dao.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.user.IPatientShortInfoDao;
import com.health.db.mapper.PatientShortInfoMapper;
import com.health.db.model.PatientShortInfo;

/**
 * 人员名单表
 * @author YC
 *
 */
@Component("patientShortInfoDao")
public class PatientShortInfoDaoImpl extends ServiceInterface implements
		IPatientShortInfoDao {

	@Autowired
	PatientShortInfoMapper patientShortInfoMapper;

	@Override
	public int insert(PatientShortInfo record) {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.insert(record);
	}

	public PatientShortInfoMapper getPatientShortInfoMapper() {
		return patientShortInfoMapper;
	}

	public void setPatientShortInfoMapper(
			PatientShortInfoMapper patientShortInfoMapper) {
		this.patientShortInfoMapper = patientShortInfoMapper;
	}

	@Override
	public String selectMedicalCardNoKey() {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.selectMedicalCardNoKey();
	}

	@Override
	public int updateByPrimaryKeySelective(PatientShortInfo record) {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<PatientShortInfo> selectByUserId(Long userId) {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.selectByUserId(userId);
	}

	@Override
	public List<PatientShortInfo> selectByMedicalCardNo(String medicalCardNo) {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.selectByMedicalCardNo(medicalCardNo);
	}

	@Override
	public PatientShortInfo selectById(Long id) {
		// TODO Auto-generated method stub
		return patientShortInfoMapper.selectByPrimaryKey(id);
	}
	
}
